﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using MySql.Data.MySqlClient;

namespace WaveMaster.Holidays.Club.Domain
{
    public class RoleDetail
    {
        RoleMaster m_roleMaster;
        long m_roleDetailID = 0;
        string m_formName = string.Empty;
        bool m_viewFlag = false;
        bool m_newFlag = false;
        bool m_updateFlag = false;
        bool m_deleteFlag = false;

        public RoleDetail() { }
        public RoleDetail(MySqlDataReader rd) 
        {
            m_roleDetailID = Convert.ToInt64(rd["role_detail_id"]);
            m_formName = rd["form_name"].ToString();
            m_viewFlag = Convert.ToBoolean(rd["view_flag"]);
            m_newFlag = Convert.ToBoolean(rd["new_flag"]);
            m_updateFlag = Convert.ToBoolean(rd["update_flag"]);
            m_deleteFlag = Convert.ToBoolean(rd["delete_flag"]);
        }
        public RoleDetail(string formName) 
        {
            m_formName = formName;
        }
        public RoleMaster RoleMaster
        {
            get { return m_roleMaster; }
            set { m_roleMaster = value; }
        }
        public long RoleDetailID
        {
            get { return m_roleDetailID; }
        }
        public string FormName
        {
            get { return m_formName; }
            set { m_formName = value; }
        }
        public bool ViewFlag
        {
            get { return m_viewFlag; }
            set { m_viewFlag = value; }
        }
        public bool NewFlag
        {
            get { return m_newFlag;}
            set { m_newFlag = value; }
        }
        public bool UpdateFlag
        {
            get { return m_updateFlag; }
            set { m_updateFlag = value; }
        }
        public bool DeleteFlag
        {
            get { return m_deleteFlag; }
            set { m_deleteFlag = value; }
        }
    }
}
